﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/BodyMasterPage.Master"
CodeBehind="wfConcepRemu.aspx.cs" Inherits="RH.wfConcepRemu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
 <base target="_self" />
 <script type="text/javascript">

     $(document).ready(function () {
         Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(PageLoaded)
     });

     function PageLoaded(sender, args) {
         ResizeGrid();
         MessageOnPostback();
     }

     function ResizeGrid() {
         internalGridResize("<%= grdList.ClientID %>");
     }

     function rowDblClick(rowIndex) {
         var row = getGridRowByIndex('<%= grdList.ClientID %>', rowIndex);
         var objValues = [];
         objValues[0] = getObjInnerText(row.cells[0]);
         objValues[1] = getObjInnerText(row.cells[1]);
         objValues[2] = getObjInnerText(row.cells[2]);
         objValues[3] = getObjInnerText(row.cells[3]);
         window.returnValue = objValues;
         window.close();
     }
 </script>
</asp:Content>
   
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
    <div class="DataHeader">
         <table id="TableDataHeader" cellpadding="0" cellspacing="0">
            <tr><td colspan="11" >&nbsp;</td></tr>
            <tr>
               <td style=" width:10px;" >             
                  &nbsp;
               </td>
               <td>
                   Codigo:
               </td>
               <td>
                   <esd:esdTextBox runat="server" ID="txtidConRemu" width="100px">
                   </esd:esdTextBox> 
               </td>
               <td>
                   Descripcion :
               </td>
               <td colspan="5">
                   <esd:esdTextBox runat="server" ID="txtdsConRemu" Width="350px"></esd:esdTextBox> 
               </td>
               <td>
                   <esd:esdButton ID="bttClear" runat="server" Text="Limpiar" Width="80px">
                   </esd:esdButton> 
               </td>
               <td style=" width:10px;" >
                  &nbsp;
               </td>
            </tr>
            <tr><td colspan="11" >&nbsp;</td></tr>
            <tr>
               <td style=" width:10px;" >             
                  &nbsp;
               </td>
               <td>
                    Tipo de Concepto R.:
               </td>
               <td colspan="7">
                   <asp:DropDownList ID="ddlidTipConcep" runat="server">
                   </asp:DropDownList>
               </td>
               <td>
                   <esd:esdButton ID="bttSearch" Runat="server" Text="Buscar" Width="80px" OnClick="bttOk_Click">
                   </esd:esdButton>
               </td>
               <td style=" width:10px;" >
                  &nbsp;
               </td>
            </tr>
            <tr><td colspan="11" >&nbsp;</td></tr>
         </table>
    </div>
    <div class="DataDetail">
        <esd:esdGridView CssClass="esdGridView" ID="grdList" runat="server" ScrollWidth="100%"
            Width="100%" ShowHeaderWhenEmpty="True" AutoGenerateColumns="False" 
            DataKeyNames="idConRemu" OnRowCreated="grdList_RowCreated">
            <Columns>
                <asp:BoundField DataField="idConRemu" HeaderText="Codigo">
                </asp:BoundField>
                <asp:BoundField DataField="dsConRemu" HeaderText="Descripcion"></asp:BoundField>
                <asp:BoundField DataField="dsTipConcep" HeaderText="Tipo Concepto">
                </asp:BoundField>
                <asp:BoundField DataField="stAnulado" HeaderStyle-CssClass="hideDataGridColumn"
                    ItemStyle-CssClass="hideDataGridColumn"></asp:BoundField>
            </Columns>
            <EmptyDataTemplate>
            <div id="gridempty">
                <asp:Image ID="imgEmpty" runat="server" ImageUrl="../Images/Controls/Attention.png" />
                &nbsp;No existen registros para esta solicitud.
            </div>
            </EmptyDataTemplate>
        </esd:esdGridView>
    </div>
     </ContentTemplate> 
</asp:UpdatePanel>
</asp:Content>